package com.hmy.staff.service.impl;

import com.hmy.staff.domain.HmyStaff;
import com.hmy.staff.service.HmyStaffService;
import com.hmy.staff.mapper.HmyStaffMapper;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author DELL
* @description 针对表【hmy_staff(员工管理表)】的数据库操作Service实现
* @createDate 2024-01-29 14:23:46
*/
@Service
public class HmyStaffServiceImpl implements HmyStaffService{

    @Autowired
    private HmyStaffMapper staffMapper;

    @Override
    public List<HmyStaff> selectStaffList(HmyStaff staff) {
        return staffMapper.selectStaffList(staff);
    }

    @Override
    public HmyStaff selectStaffById(Long staffId) {

        return staffMapper.selectStaffById(staffId);
    }

    @Override
    public int insertStaff(HmyStaff staff) {
        return staffMapper.insertStaff(staff);
    }

    @Override
    public int updateStaff(HmyStaff staff) {
        return staffMapper.updateStaff(staff);
    }

    @Override
    public int deleteStaffById(Long staffId) {
        return staffMapper.deleteStaffById(staffId);
    }

    @Override
    public int deleteStaffByIds(Long[] staffIds) {
        return staffMapper.deleteStaffByIds(staffIds);
    }

    @Override
    public List<HmyStaff> selectByStaffCode(String staffCode) {
        return staffMapper.selectByStaffCode(staffCode);
    }
}
